package com.sky.rabc.common;

/**
 * @author 许照
 * @className ThreadLocalCommon
 * @description 线程变量控制类
 * @date 2024/6/24
 */
public class ThreadLocalCommon {
    private static final ThreadLocal<Long> THREAD_LOCAL = new ThreadLocal<>();
    public static void setValue(Long value){
        THREAD_LOCAL.set(value);
    }
    public static Long getValue(){
        return THREAD_LOCAL.get();
    }
    public static void remove(){
        THREAD_LOCAL.remove();
    }
}
